import summonedBase
import time
from data import *

class Sun(summonedBase.SummonedBase):
    def __init__(self,surface,pos,moveLength) :
        speed = data.get('sun').get('speed')
        gap = data.get('sun').get('gap')
        liveTime = data.get('sun').get('liveTime')
        path = data.get('sun').get('imagePath')
        size = data.get('sun').get('size')
        super().__init__(surface,path,size,pos,speed,gap,liveTime,moveLength,0)

    def pick(self):
        self.speed = (self.speed[0], -self.speed[1])
        self.startPos = (self.pos[0], self.pos[1])
        self.addTime = time.time()
        self.liveTime = 1


